(function () {
    // let num: number = 1;
    var solution = function (provideCount, num) {
        if (num === void 0) { num = 1; }
        // 假设proCount是10，Num
        // 假设beichu1,2,3 假设数字是10,被除数1-10
        var beichu = 1;
        var count = 0;
        for (var i = 0; i < num; i++) {
            console.log(num, beichu, count, num % beichu);
            if (num % beichu === 0) {
                count++;
            }
            if (beichu <= num) {
                beichu++;
            }
        }
        console.log('return count', count);
        if (count >= provideCount) {
            console.log('num', num);
        }
        else {
            num++;
            solution(provideCount, num);
        }
        return num;
    };
    //solution(6)=>12  6 1234612
    //solution(10)=>return48
    // console.log(55555555, solution(6, 1));//4
    console.log(55555555, solution(12, 1)); //4
    // 6=>12因为1,2，3,4,6,12
})();
